using System;
using System.Collections.Generic;
using System.Text;
namespace GSM.BusinessLayer
{
	public class Message_Market: BusinessObjectBase
	{

		#region InnerClass
		public enum Message_MarketFields
		{
			MessageMarketID,
			Content
		}
		#endregion

		#region Data Members

			int _messageMarketID;
			string _content;

		#endregion

		#region Properties

		public int  MessageMarketID
		{
			 get { return _messageMarketID; }
			 set
			 {
				 if (_messageMarketID != value)
				 {
					_messageMarketID = value;
					 PropertyHasChanged("MessageMarketID");
				 }
			 }
		}

		public string  Content
		{
			 get { return _content; }
			 set
			 {
				 if (_content != value)
				 {
					_content = value;
					 PropertyHasChanged("Content");
				 }
			 }
		}


		#endregion

		#region Validation

		internal override void AddValidationRules()
		{
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("MessageMarketID", "MessageMarketID"));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Content", "Content",200));
		}

		#endregion

	}
}
